//
//  GGOrderListViewController.m
//  XTXOneToOne
//
//  Created by Canny on 2018/11/15.
//  Copyright © 2018年 WK. All rights reserved.
//

#import "GGOrderListViewController.h"
#import "GGOrderModel.h"
#import "LeverageTradeModel.h"
#import "FBPayOrderViewController.h"

@interface GGOrderListViewController ()

@end

@implementation GGOrderListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self setProperty];
    
    [self createUI];

}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [UIApplication sharedApplication].statusBarHidden = NO;
    
    self.navigationController.navigationBar.translucent = YES;
    self.navigationController.navigationBarHidden=YES;
    
}

-(void)setProperty{
    
    self.view.backgroundColor=RGB(255, 255, 255);
    
    [UIApplication sharedApplication].statusBarHidden = NO;
    
    self.navigationController.navigationBar.translucent = YES;
    self.navigationController.navigationBarHidden=YES;
    
    self.baseVcTitle = @"杠杆交易订单";
    

}



-(void)createUI{
    

    NSArray * arr =@[@"当前委托",@"持仓",@"历史订单"];
    _segmentView  =  [GGOrderSlideView segmentControlViewWithFrame:CGRectMake(0, kStatusBarAndNavigationBarHeight, G_SCREENWIDTH, G_SCREENHEIGHT-kStatusBarAndNavigationBarHeight)];
    _segmentView.normalColor = RGB(102,102,102);
    _segmentView.selectedColor = MC_THEME_COLOR;
    _segmentView.SlideSelectedColor=MC_THEME_COLOR;
    _segmentView.titleArray = arr;
    _segmentView.selectedTitleArray = arr;
    [self.view addSubview:_segmentView];

    
}






@end

